package cn.shiwei.basic.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BaseQuery {

    // 当前页
    @ApiModelProperty("当前页")
    private Integer currentPage = 1;
    // 页面显示数据条数
    @ApiModelProperty("页面显示数据条数")
    private Integer pageSize = 5;

    private Integer getBegin(){
        return (this.currentPage - 1) * this.pageSize;
    }
    private String queryName;
}
